﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Pikapika.Models;

namespace Pikapika.Models.ViewModels.Novel
{
    public class NovelReadModel
    {
        public NovelChapter Chapter { get; set; }
        public NovelChapter NextChapter { get; set; }
        public NovelChapter PreviousChapter { get; set; }
        public int HitCount { get; set; }
        public DateTimeOffset TimeZoneCorrectedUpdatedDate
        {
            get
            {
                return new DateTimeOffset(Chapter.UpdatedDate, TimeSpan.Zero).ToOffset(Properties.Settings.Default.TimeZone);
            }
        }
    }
}